package org.brakepedal.server.support.bluetooth;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;
import org.brakepedal.server.pojo.Vo;

import java.util.Date;

/**
 * Date: 2024/4/1 14:15
 *
 * @author Huanyu Mark
 */
@Data
@Getter
@Builder
public class BrakePedalStateFrame implements BtFrame, Vo {

    public static final byte HEAD = (byte) 0xff;

    public static final byte TAIL = (byte) 0xfe;

    private final int acc;

    private final int pressure;

    private final int year;
    private final int month;
    private final int day;
    private final int hour;
    private final int minute;
    private final int second;

    public BrakePedalStateFrame(int acc, int pressure, int year, int month, int day, int hour, int minute, int second) {
        this.acc = acc;
        this.pressure = pressure;
        this.year = year;
        this.month = month;
        this.day = day;
        this.hour = hour;
        this.minute = minute;
        this.second = second;
    }
}
